﻿@model Model.View_Order_Int
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Dialog</title>
</head>
<body>
    <div style="text-align: right; padding-right: 50px;">
        @if (ViewData.Model == null)
        {
            <h3>没有加载到数据</h3>
        }
        else
        {
            using (Html.BeginForm(@ViewBag.ACTION as string, "IntegralManage", FormMethod.Post, new { id = "Form" }))
            {

                if ("BtnEdit".Equals(@ViewBag.ACTION as string))
                {
                    <br /><span>积分类型</span>
                    @Html.TextBoxFor(m => m.MerID, "平台积分", new { disabled = "true", @class = "easyui-textbox"})
                    @*<br /><span>积分类型(为了提交)</span>*@
                    @Html.TextBoxFor(m => m.MerID, "", new { type = "hidden" })
                }else
                {
                    <br /><span>积分类型</span>
                    @Html.TextBoxFor(m => m.MerID, "", new { @class = "easyui-textbox" })
                }
                <br /><br /><span>积分转换单位</span>
                @Html.DropDownList("IntUn", @ViewBag.IntUnList as List<SelectListItem>, new { @class = "easyui-combobox" })
                <br /><br /><span>转换金额处理</span>
                @Html.DropDownList("IntUn", @ViewBag.IntYList as List<SelectListItem>, new { @class = "easyui-combobox" })
                <br /><br /><span>积分转换率</span>
                @Html.TextBoxFor(m => m.IntChe, "", new { placeholder="默认1元=100积分", @class = "easyui-textbox" })
                <br /><br /><span>是否打开</span>
                @Html.DropDownList("IsOpen", @ViewBag.IsOpenList as List<SelectListItem>, new { @class = "easyui-combobox" })

                @*<br /><span>积分ID</span>*@
                @Html.TextBoxFor(m => m.IntID, "", new { type = "hidden" })
                @*<br /><span>是否有效</span>*@
                @Html.TextBoxFor(m => m.IntState, "1", new { type = "hidden" })

                @*<br />
                <input type="button" id="OnSubmit" onclick="OnSubmit()" value="提交" />*@
            }
        }
    </div>
</body>
</html>
